<template functional>
  <el-form
    label-width="150px"
    size="mini"
  >
    <el-form-item label="一级菜单：">
      <div style="font-weight: 600">
        {{ props.data.menu1 || "无" }}
      </div>
    </el-form-item>

    <el-form-item label="二级菜单：">
      <div style="font-weight: 600">
        {{ props.data.menu2 || "无" }}
      </div>
    </el-form-item>

    <el-form-item label="三级菜单：">
      <div style="font-weight: 600">
        {{ props.data.menu3 || "无" }}
      </div>
    </el-form-item>
    <el-form-item label="按钮：">
      <div style="font-weight: 600">
        {{ props.data.method_button || "无" }}
      </div>
    </el-form-item>

    <el-form-item label="重要性：">
      <div style="font-weight: 600">
        {{ props.data.importance === 3 ? "低" : "" }}
        {{ props.data.importance === 2 ? "中" : "" }}
        {{ props.data.importance === 1 ? "高" : "" }}
      </div>
    </el-form-item>

    <el-form-item label="操作人员：">
      <div style="font-weight: 600">
        {{ props.data.empid.cnname || "无" }}
      </div>
    </el-form-item>

    <el-form-item label="最后一次登录：">
      <div style="font-weight: 600">
        {{ props.data.empid.last_login || "无" }}
      </div>
    </el-form-item>

    <el-form-item label="备注：">
      <div style="font-weight: 600">
        {{ props.data.remark || "无" }}
      </div>
    </el-form-item>

    <el-form-item label="来源IP：">
      <div style="font-weight: 600">
        {{ props.data.userip }}
      </div>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  props: {
    data: {
      type: Object,
      required: true,
    },
  },
};
</script>

<style>
</style>
